import './bootstrap';
import { createApp } from 'vue';
import App from './App.vue';
import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            component: App
        },
        {
            path: '/admin',
            component: () => import('@Admin/App.vue').then(m => m.default)
        }
    ]
});

const app = createApp(App);
app.use(router);
app.mount('#app');
